package com.it.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.dao.BrandDao;
import com.it.domain.Brand;
import com.it.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 业务层快速开发
 */
@Service
public class BrandServiceImpl2 extends ServiceImpl<BrandDao, Brand> implements IBrandService {
    @Autowired
    private BrandDao brandDao; //装配数据层接口

    //新增功能
    @Override
    public Boolean saveBrand(Brand brand) {
            return  brandDao.insert(brand)>0;

        //重载功能 不要覆盖原生操作，避免原始功能丢失
    }



}
